package com.gvt.vo;

import java.io.Serializable;
import java.util.List;

@SuppressWarnings("serial")
public class Row implements Serializable{
	private Integer index;
	private List<Column> columns;
	
	public Row() {
		super();
	}
	public Row(Integer index, List<Column> columns) {
		super();
		this.index = index;
		this.columns = columns;
	}

	public String toString(){
		StringBuffer str = new StringBuffer("");
		for(Column col: columns){
			str.append(col + "\n");
		}
		return "row " + String.valueOf(index) + "\t" + str.toString();
	}
	
	public Integer getIndex() {
		return index;
	}
	public void setIndex(Integer index) {
		this.index = index;
	}
	public List<Column> getColumns() {
		return columns;
	}
	public void setColumns(List<Column> columns) {
		this.columns = columns;
	}
	
}
